class Car(object):
    total_cars = 0
    def __init__(self, make, model):
        self.make = make
        self.model = model
        self.__class__.total_cars += 1

    def accelerate(self):
        print(f"一辆{self.make}的{self.model}正在加速")

    @classmethod
    def show_total_cars(cls):
        print(id(cls))
        print("当前的total_cars:", cls.total_cars)

# print(Car.total_cars)
print(id(Car))
Car.show_total_cars()
